window.phoenix&&(window.phoenix.buildInfo||(window.phoenix.buildInfo=[]),-1===window.phoenix.buildInfo.findIndex((t=>"Phoenix-unav"===t.MFE))&&window.phoenix.buildInfo.push({MFE:"Phoenix-unav",VERSION:"rc-phoenix-unav-1.1.7127.1280676399-0e60e6ff-24-g13dabfe",LASTCOMMITDATETIME:"2024-07-18T14:40:54-07:00"})) /*! * * ============= BUILD INFO ============= * MFE: Phoenix-unav * chunkName: component-clientlibs/transactional-header.v1/transactional-header * VERSION: rc-phoenix-unav-1.1.7127.1280676399-0e60e6ff-24-g13dabfe * BRANCH: release/fix-unav0722 * COMMITHASH: 13dabfe49c3b891f6dff5d0a3f735594995f7d83 * LASTCOMMITDATETIME: 2024-07-18T14:40:54-07:00 * ============= If you're reading this, why not come work with us? https://www.t-mobile.com/careers ============= */,function(){"use strict";var t={53:function(t,e,o){o.d(e,{o:function(){return s}});const s={vh:"--js--vh","vh-free":"--js--vh-free","header-overall":"--js--header-height-overall","header-universal":"--js--header-height-universal","header-primary":"--js--header-height-primary"}},651:function(t,e,o){o.d(e,{fF:function(){return n},go:function(){return r},kw:function(){return a}});var s=o(53);function i(t){let e;return e=n()?t?document.querySelector("tmo-digital-header")?.shadowRoot:document.querySelector("tmo-digital-footer")?.shadowRoot:document,e}function n(){return Boolean(document.querySelector("tmo-digital-header")||document.querySelector("tmo-digital-footer"))}function r(t){return JSON.parse(t).reduce(((t,e)=>(t[e.customerType]=e.targetURL,t)),{})}function a(){const t=i(!0),e=i(!1);if(navigator.userAgent.toLowerCase().includes("applicationversioncode")){const o=t.querySelector(".unav-header"),i=t.querySelector(".unav-transactionalHeader"),n=e.querySelector(".unav-footer"),r=e.querySelector(".unav-footerUniversal-component");n?.classList.add("unav-header-hide__mobile-app"),o?.classList.add("unav-header-hide__mobile-app"),i?.classList.add("unav-header-hide__mobile-app"),r?.classList.add("unav-header-hide__mobile-app"),document.documentElement.style.setProperty(s.o["header-overall"],"0px")}}}},e={};function o(s){var i=e[s];if(void 0!==i)return i.exports;var n=e[s]={exports:{}};return t[s](n,n.exports,o),n.exports}o.d=function(t,e){for(var s in e)o.o(e,s)&&!o.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},function(){const t="(min-width: 1024px)",e={dev:{baseUrl:"https://digital-dev.t-mobile.com/self-service-flex/v1",loginRedirect:!1,logoutRedirect:!1,mytmoHost:"https://e9.my.t-mobile.com",iamHost:"https://ppd2.account.t-mobile.com",injectMPScript:!0,knownDomains:{tmo:"https://qlab02.digital.t-mobile.com",mytmo:"https://e2.my.t-mobile.com",metro:"https://q2.metrobyt-mobile.com",secureId:"https://eui3.account.t-mobile.com"},mpScriptURLs:["https://tmobilees.mpeasylink.com/mpel/mpel.js","https://digital-dev.t-mobile.com/client/assets/scripts/mp_linkcode.js","https://digital-dev.t-mobile.com/client/assets/scripts/motionpoint_v2.js"]},uat:{loginRedirect:!1,baseUrl:"https://digital-qat.t-mobile.com/self-service-flex/v1",logoutRedirect:!1,mytmoHost:"https://e3.my.t-mobile.com",iamHost:"https://ppd2.account.t-mobile.com",injectMPScript:!0,knownDomains:{tmo:"https://qlab03.digital.t-mobile.com",mytmo:"https://e4.my.t-mobile.com",metro:"https://q2.metrobyt-mobile.com",secureId:"https://eui7.account.t-mobile.com"},mpScriptURLs:["https://tmobilees.mpeasylink.com/mpel/mpel.js","https://digital-qat.t-mobile.com/client/assets/scripts/mp_linkcode.js","https://digital-qat.t-mobile.com/client/assets/scripts/motionpoint_v2.js"]},prod:{baseUrl:"https://www.t-mobile.com/self-service-flex/v1",loginRedirect:!1,logoutRedirect:!1,mytmoHost:"https://my.t-mobile.com",iamHost:"https://account.t-mobile.com",injectMPScript:!0,knownDomains:{tmo:"https://www.t-mobile.com",mytmo:"https://my.t-mobile.com",metro:"https://www.metrobyt-mobile.com",secureId:"https://account.t-mobile.com"},mpScriptURLs:["https://tmobilees.mpeasylink.com/mpel/mpel.js","https://www.t-mobile.com/client/assets/scripts/mp_linkcode.js","https://www.t-mobile.com/client/assets/scripts/motionpoint_v2.js"]},stage:{baseUrl:"https://staging.t-mobile.com/self-service-flex/v1",loginRedirect:!1,logoutRedirect:!1,mytmoHost:"https://e3.my.t-mobile.com",iamHost:"https://ppd2.account.t-mobile.com",injectMPScript:!0,knownDomains:{tmo:"https://staging.t-mobile.com",mytmo:"https://e3.my.t-mobile.com",metro:"https://stg.metrobyt-mobile.com",secureId:"https://ppd2.account.t-mobile.com"},mpScriptURLs:["https://tmobilees.mpeasylink.com/mpel/mpel.js","https://staging.t-mobile.com/client/assets/scripts/mp_linkcode.js","https://staging.t-mobile.com/client/assets/scripts/motionpoint_v2.js"]}};function s(){const t=window.unavConfig;let o=e.prod;if(!t)return o;const s=t.env&&e[t.env]?t.env:"prod";o={...e[s],...t};const i=e[s],n={...i?.knownDomains,...t?.knownDomains};return o.knownDomains=n,o}const i="/unav";new class{customerUserStateResponse;baseURL=s().baseUrl;baseURLDomain=new URL(this.baseURL).origin;customerUserStateResponsePromise;fetchLock=null;async getCustomerUserStateResponse(){return await this.customerUserStateResponsePromise||(this.fetchLock||(this.fetchLock=this.fetchData()),await this.fetchLock),this.customerUserStateResponsePromise}async fetchData(){try{const t=await fetch(`${this.baseURL}${i}`,{method:"POST"}),e=await t.json();this.customerUserStateResponsePromise=Promise.resolve(e)}catch(t){this.customerUserStateResponsePromise=Promise.reject(t)}finally{this.fetchLock=null}}};function n(t,e){const o=s().knownDomains;let i=e;return t?.querySelectorAll("a").forEach((t=>{i=e||t.getAttribute("href");const s=t.getAttribute("data-domain-mapping");if(i&&s&&o&&o[s]&&((n=i).startsWith("http://")||n.startsWith("https://"))){const e=new URL(i);i=`${o[s]}${e.pathname+e.search}`,t.setAttribute("href",i)}else i&&s&&o&&o[s]&&!i.startsWith("tel")&&(i=`${o[s]}${i}`,t.setAttribute("href",i));var n})),i}var r=o(651);window.Alpine?.data("transactionalHeader",(()=>({href:"",logoLinkPath:"",isDesktop:!1,init(){this.logoLinkPath=this.$el?.dataset.transactionalheaderLogolinkpath,(0,r.kw)();const e=window?.phoenix?.experience?.utils;null!=e&&e?.registerMediaQuerySensor&&e.registerMediaQuerySensor({min:t,action:t=>{this.isDesktop=t}}),window.phoenix.bus.subscribe("PLATFORM_AUTHORIZATION","SET_AUTH_STATE",(t=>{this.onAuthStateChanged(t?.payload?.authState??"")}));const o=document.body.dataset.authState;o&&this.onAuthStateChanged(o)},onAuthStateChanged(t){if(t){const e=(0,r.go)(this.$el?.dataset.transactionalheaderCustomerurlmapping||"[]");this.href=e[t]??this.logoLinkPath}else this.href=this.logoLinkPath;(0,r.fF)()&&(this.href=n(this.$el,this.href))}})))}()}();